import request from "@/request/index.js"
const authApi = {
	register: (data) => {
		return request("/member/auth/register", {
			method: "POST",
			data
		})
	},
	login: (data) => {
		return request("/member/auth/login", {
			method: "POST",
			data
		})
	},
	weixinMiniAppLogin: (data) => {
		return request("/member/auth/weixin-mini-app-login", {
			method: "POST",
			data
		})
	},
	socialLogin: (code) => {
		return request("/member/auth/social-login", {
			method: "POST",
			data: {
				type: 34,
				code,
				state: 'default'
			}
		})
	}
}

export default authApi